<?php

return [
    'UserName' => \Hyperf\Support\env('MQTT_USERNAME', 'ddiot'),
    'Password' => \Hyperf\Support\env('MQTT_PASSWORD', 'ddiot@ddiot2030'),
    'ip'=> \Hyperf\Support\env('MQTT_IP', '127.0.0.1'),
    'port'=>\Hyperf\Support\env('MQTT_PORT', 1883),
    'clientId' => \Hyperf\Support\env('MQTT_CLIENT_ID','ddiiot'), // 客户端id
    'KeepAlive' => 10,
    'Delay' => 3000, // 3s
    'MaxAttempts' => 5,
    'Properties' => [
        'session_expiry_interval' => 60,
        'receive_maximum' => 65535,
        'topic_alias_maximum' => 65535,
    ],
    'ProtocolLevel' => 5,
    'SwooleConfig' => [
        'open_mqtt_protocol' => true,
        'package_max_length' => 2 * 1024 * 1024,
        'connect_timeout' => 5.0,
        'write_timeout' => 5.0,
        'read_timeout' => 5.0,
    ]
];